<?php

include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultFenxiaoPrice.class.php');
include_once ('ProductKeywordsSearchParam/AlibabaOceanOpenplatformBizFenxiaoResultQuantityPrice.class.php');

class AlibabaOceanOpenplatformBizFenxiaoResultOfferPrice extends SDKDomain {

       	
    private $consignPrice;
    
        /**
    * @return 
    */
        public function getConsignPrice() {
        return $this->consignPrice;
    }
    
    /**
     * 设置     
     * @param String $consignPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setConsignPrice( $consignPrice) {
        $this->consignPrice = $consignPrice;
    }
    
        	
    private $fenxiaoPrice;
    
        /**
    * @return 
    */
        public function getFenxiaoPrice() {
        return $this->fenxiaoPrice;
    }
    
    /**
     * 设置     
     * @param AlibabaOceanOpenplatformBizFenxiaoResultFenxiaoPrice $fenxiaoPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setFenxiaoPrice(AlibabaOceanOpenplatformBizFenxiaoResultFenxiaoPrice $fenxiaoPrice) {
        $this->fenxiaoPrice = $fenxiaoPrice;
    }
    
        	
    private $price;
    
        /**
    * @return 
    */
        public function getPrice() {
        return $this->price;
    }
    
    /**
     * 设置     
     * @param String $price     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setPrice( $price) {
        $this->price = $price;
    }
    
        	
    private $priceType;
    
        /**
    * @return 
    */
        public function getPriceType() {
        return $this->priceType;
    }
    
    /**
     * 设置     
     * @param String $priceType     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setPriceType( $priceType) {
        $this->priceType = $priceType;
    }
    
        	
    private $priceUnderLine;
    
        /**
    * @return 
    */
        public function getPriceUnderLine() {
        return $this->priceUnderLine;
    }
    
    /**
     * 设置     
     * @param String $priceUnderLine     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setPriceUnderLine( $priceUnderLine) {
        $this->priceUnderLine = $priceUnderLine;
    }
    
        	
    private $quantityPrice;
    
        /**
    * @return 
    */
        public function getQuantityPrice() {
        return $this->quantityPrice;
    }
    
    /**
     * 设置     
     * @param array include @see AlibabaOceanOpenplatformBizFenxiaoResultQuantityPrice[] $quantityPrice     
     * 参数示例：<pre></pre>     
     * 此参数必填     */
    public function setQuantityPrice(AlibabaOceanOpenplatformBizFenxiaoResultQuantityPrice $quantityPrice) {
        $this->quantityPrice = $quantityPrice;
    }
    
        	
    private $multipleConsignPrice;
    
        /**
    * @return 分销多件下单价格（单位：元）
    */
        public function getMultipleConsignPrice() {
        return $this->multipleConsignPrice;
    }
    
    /**
     * 设置分销多件下单价格（单位：元）     
     * @param String $multipleConsignPrice     
     * 参数示例：<pre>11.90</pre>     
     * 此参数必填     */
    public function setMultipleConsignPrice( $multipleConsignPrice) {
        $this->multipleConsignPrice = $multipleConsignPrice;
    }
    
        	
    private $distributionFreePostage;
    
        /**
    * @return 分销是否包邮
    */
        public function getDistributionFreePostage() {
        return $this->distributionFreePostage;
    }
    
    /**
     * 设置分销是否包邮     
     * @param Boolean $distributionFreePostage     
     * 参数示例：<pre>true</pre>     
     * 此参数必填     */
    public function setDistributionFreePostage( $distributionFreePostage) {
        $this->distributionFreePostage = $distributionFreePostage;
    }
    
    	
	private $stdResult;
	
	public function setStdResult($stdResult) {
		$this->stdResult = $stdResult;
					    			    			if (array_key_exists ( "consignPrice", $this->stdResult )) {
    				$this->consignPrice = $this->stdResult->{"consignPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "fenxiaoPrice", $this->stdResult )) {
    				$fenxiaoPriceResult=$this->stdResult->{"fenxiaoPrice"};
    				$this->fenxiaoPrice = new AlibabaOceanOpenplatformBizFenxiaoResultFenxiaoPrice();
    				$this->fenxiaoPrice->setStdResult ( $fenxiaoPriceResult);
    			}
    			    		    				    			    			if (array_key_exists ( "price", $this->stdResult )) {
    				$this->price = $this->stdResult->{"price"};
    			}
    			    		    				    			    			if (array_key_exists ( "priceType", $this->stdResult )) {
    				$this->priceType = $this->stdResult->{"priceType"};
    			}
    			    		    				    			    			if (array_key_exists ( "priceUnderLine", $this->stdResult )) {
    				$this->priceUnderLine = $this->stdResult->{"priceUnderLine"};
    			}
    			    		    				    			    			if (array_key_exists ( "quantityPrice", $this->stdResult )) {
    			$quantityPriceResult=$this->stdResult->{"quantityPrice"};
    				$object = json_decode ( json_encode ( $quantityPriceResult ), true );
					$this->quantityPrice = array ();
					for($i = 0; $i < count ( $object ); $i ++) {
						$arrayobject = new ArrayObject ( $object [$i] );
						$AlibabaOceanOpenplatformBizFenxiaoResultQuantityPriceResult=new AlibabaOceanOpenplatformBizFenxiaoResultQuantityPrice();
						$AlibabaOceanOpenplatformBizFenxiaoResultQuantityPriceResult->setArrayResult($arrayobject );
						$this->quantityPrice [$i] = $AlibabaOceanOpenplatformBizFenxiaoResultQuantityPriceResult;
					}
    			}
    			    		    				    			    			if (array_key_exists ( "multipleConsignPrice", $this->stdResult )) {
    				$this->multipleConsignPrice = $this->stdResult->{"multipleConsignPrice"};
    			}
    			    		    				    			    			if (array_key_exists ( "distributionFreePostage", $this->stdResult )) {
    				$this->distributionFreePostage = $this->stdResult->{"distributionFreePostage"};
    			}
    			    		    		}
	
	private $arrayResult;
	public function setArrayResult($arrayResult) {
		$this->arrayResult = $arrayResult;
				    		    			if (array_key_exists ( "consignPrice", $this->arrayResult )) {
    			$this->consignPrice = $arrayResult['consignPrice'];
    			}
    		    	    			    		    		if (array_key_exists ( "fenxiaoPrice", $this->arrayResult )) {
    		$fenxiaoPriceResult=$arrayResult['fenxiaoPrice'];
    			    			$this->fenxiaoPrice = new AlibabaOceanOpenplatformBizFenxiaoResultFenxiaoPrice();
    			    			$this->fenxiaoPrice->setStdResult ( $fenxiaoPriceResult);
    		}
    		    	    			    		    			if (array_key_exists ( "price", $this->arrayResult )) {
    			$this->price = $arrayResult['price'];
    			}
    		    	    			    		    			if (array_key_exists ( "priceType", $this->arrayResult )) {
    			$this->priceType = $arrayResult['priceType'];
    			}
    		    	    			    		    			if (array_key_exists ( "priceUnderLine", $this->arrayResult )) {
    			$this->priceUnderLine = $arrayResult['priceUnderLine'];
    			}
    		    	    			    		    		if (array_key_exists ( "quantityPrice", $this->arrayResult )) {
    		$quantityPriceResult=$arrayResult['quantityPrice'];
    			$this->quantityPrice = new AlibabaOceanOpenplatformBizFenxiaoResultQuantityPrice();
    			$this->quantityPrice->setStdResult ( $quantityPriceResult);
    		}
    		    	    			    		    			if (array_key_exists ( "multipleConsignPrice", $this->arrayResult )) {
    			$this->multipleConsignPrice = $arrayResult['multipleConsignPrice'];
    			}
    		    	    			    		    			if (array_key_exists ( "distributionFreePostage", $this->arrayResult )) {
    			$this->distributionFreePostage = $arrayResult['distributionFreePostage'];
    			}
    		    	    		}
 
   
}
?>